package com.ruoyi.core.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 码表对象 codes
 * 
 * @author lgc
 * @date 2020-08-08
 */
public class Codes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long codeId;

    /** 卡卷编号 */
    @Excel(name = "卡卷编号")
    private String code;

    /** 卡卷密码 */
    @Excel(name = "卡卷密码")
    private String fwCode;

    /** 序号 */
    @Excel(name = "序号")
    private String index;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    public void setCodeId(Long codeId) 
    {
        this.codeId = codeId;
    }

    public Long getCodeId() 
    {
        return codeId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setFwCode(String fwCode) 
    {
        this.fwCode = fwCode;
    }

    public String getFwCode() 
    {
        return fwCode;
    }
    public void setIndex(String index) 
    {
        this.index = index;
    }

    public String getIndex() 
    {
        return index;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("codeId", getCodeId())
            .append("code", getCode())
            .append("fwCode", getFwCode())
            .append("index", getIndex())
            .append("userId", getUserId())
            .toString();
    }
}
